import 'package:json_annotation/json_annotation.dart';

@JsonSerializable()
class Ball extends Object {
  String? iconUrl;
  String? name;
  int? id;

  Ball({this.iconUrl, this.name, this.id});

  Ball.fromJson(Map<String, dynamic> json) {
    iconUrl = json['iconUrl'];
    name = json['name'];
    id = json['id'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['iconUrl'] = this.iconUrl;
    data['name'] = this.name;
    data['id'] = this.id;
    return data;
  }
}
